package org.example.seckilljava.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.seckilljava.entity.Goods;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select * from t_goods where goods_num = #{goodsNum}")
    Goods getGoodsByNum(@Param("goodsNum") String goodsNum);
}